package com.xywy.tangandroid.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.xywy.tangandroid.R;
import com.xywy.tangandroid.base.BaseActivity;

public class BloodDataTest extends BaseActivity {
	private RelativeLayout left_img;
	private TextView middle_title;
	@Override
	protected void initView(Bundle savedInstanceState) {
		setContentView(R.layout.act_blood_data_test);
		left_img = (RelativeLayout) findViewById(R.id.left_img);
		middle_title = (TextView) findViewById(R.id.middle_title);
		middle_title.setText(getResources().getString(R.string.testing));
	}

	@Override
	protected void initListener() {
		left_img.setOnClickListener(this);
		
		 new CountDownTimer(2000, 1000) {

				public void onTick(long millisUntilFinished) {

					
				}

				public void onFinish() {
					Intent intent=new Intent(BloodDataTest.this, BloodDataResultAct.class);
					startActivity(intent);
					finish();
				}
			}.start();
	}

	@Override
	protected void initData() {

	}
    @Override
    public void onClick(View v) {
    	super.onClick(v);
    	switch (v.getId()) {
		case R.id.left_img:
			finish();
			break;

		default:
			break;
		}
    }
}
